package org.shoukaiseki.inittable.exception;

public class InitTableException extends RuntimeException {

    private Object data;

    public InitTableException(String msg,Throwable t){
        super(msg,t);
    }

    public Object getData() {
        return data;
    }

    public InitTableException setData(Object data) {
        this.data = data;
        return this;
    }

    @Override
    public String getMessage() {
        return super.getMessage()+(getCause()!=null?getCause().getMessage():"");
    }
}
